x86/HPET: fix initialization order
authorJan Beulich <jbeulich@novell.com>
Sat, 12 Mar 2011 13:19:02 +0000 (13:19 +0000)
committerJan Beulich <jbeulich@novell.com>
Sat, 12 Mar 2011 13:19:02 +0000 (13:19 +0000)
commit8fb98708308bec25d9e80c7ebe0360cb95fc11f9
tree53ae25881c5b0cf26a1f3a6e69048a16d783793e
parent8d5a53c1fa701556a845c23951840c76d6abe99d
x86/HPET: fix initialization order

At least the legacy path can enter its interrupt handler callout while
initialization is still in progress - that handler checks whether
->event_handler is non-NULL, and hence all other initialization must
happen before setting this field.

Do the same to the MSI initialization just in case (and to keep the
code in sync).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/hpet.c